<template>
	<view>
		<web-view :webview-styles="webviewStyles" :src="web_url" v-if="web_url"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				web_url:'',
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				}
			}
		},
		methods: {
			
		},
		onLoad(e){
			var _this = this;
			if(e.web_url)
			{
				_this.web_url = _this.$api.urldecode(e.web_url);
			}else{
				uni.showModal({
					title: '错误提示',
					content: '未获取到链接地址',
					showCancel:false,
					success: function (res) {
						_this.$api.navbackTo();
					}
				});
			}
		},
	}
</script>

<style>

</style>
